package net.codesree.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import net.codesree.dao.IRowMapper;

public abstract class AbstractRowMapper implements IRowMapper {
 
 protected ResultSet rs=null;
 
 public abstract Object processResultSet() throws SQLException;
 
 public Object mapResultToBean(ResultSet _rSet,int rowNum) throws SQLException {
  this.rs=_rSet;
  rs.absolute(rowNum);
  return processResultSet();
 }
}
